using System;
using System.Drawing;

namespace SuDokuSolution
{
	
	/// Contains  drawing tools to be used frequently
	
	public class DrawingTools
	{
		public static Pen DarkPen;
        public static Pen LightPen;
        public static Pen MediumPen;
        public static Brush WhiteBrush;
        public static Brush AnswerBrush;
        public static Brush ProblemBrush;
        public static Brush BackGroundBrush1;
        public static Brush BackGroundBrush2;
		public static Brush ErrorBrush;
        public static Font SelectedFont = new Font("Mistral", 1);
		public static Font miniSelectedFont=new Font("Mistral",1);

        public DrawingTools()
        {}

      
        /// Initiallize all members
      
        public static void InitDrawingTools()
        {
            DarkPen= new Pen(Color.Black);
            LightPen= new Pen(Color.Black);
            MediumPen = new Pen(Color.Black);			
            WhiteBrush =  new SolidBrush(Color.WhiteSmoke);
            AnswerBrush= new SolidBrush(Color.Blue);
           
            ProblemBrush= new SolidBrush(Color.Black); 
            BackGroundBrush1= new SolidBrush(Color.DarkGray); 
            BackGroundBrush2= new SolidBrush(Color.LightGray); 
			ErrorBrush=new SolidBrush(Color.Red);			
        }

     
        /// Dispose all members
     
        public static void DisposeDrawingTools()
        {
			SelectedFont.Dispose();
			miniSelectedFont.Dispose();
			DarkPen.Dispose();
			LightPen.Dispose();
			MediumPen.Dispose();
			WhiteBrush.Dispose();
			AnswerBrush.Dispose();
			ProblemBrush.Dispose();
			BackGroundBrush1.Dispose();
			BackGroundBrush2.Dispose();
			ErrorBrush.Dispose();           
        }

	}
}
